package net.marloncarvalho.loteriaz.web.client;

import net.marloncarvalho.loteriaz.web.client.dto.EstatisticasDezenaDTO;
import net.marloncarvalho.loteriaz.web.client.dto.SorteioDezenasDTO;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.ServiceDefTarget;

public interface LoteriazRemote extends RemoteService {

	public static final String SERVICE_URI = "LoteriazRemote";

	public static class Util {

		public static LoteriazRemoteAsync getInstance() {
			LoteriazRemoteAsync instance = (LoteriazRemoteAsync) GWT.create(LoteriazRemote.class);
			ServiceDefTarget target = (ServiceDefTarget) instance;
			target.setServiceEntryPoint(GWT.getModuleBaseURL() + SERVICE_URI);
			return instance;
		}
	}

	public EstatisticasDezenaDTO obterQuantidadeVezesDezenaSorteada(String dezena, int loteria);
	public SorteioDezenasDTO obterSorteiosPorDezenas(String[] dezenas);
}